package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_thongtin_tkb")
public class Tbl_ThongTin_TKB implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_DKMH_DotDK dotDKId = null;
   private Integer siSoMax;
   private Integer siSoMin;
   private Double phanTramDoi;

private Double phanTramXepLop;

private Integer soHVDangKy;
   private String giangVien;
   private Integer tuanBatDau;
   private Integer tuanKetThuc;
   private Integer tuanHoc;
   private String ghiChu;
   private Tbl_CanBo canBoId = null;
   private Date ngayCapNhat;
   private String maCoSo;

   public String getMaCoSo() {
	return maCoSo;
}
public void setMaCoSo(String maCoSo) {
	this.maCoSo = maCoSo;
}

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="DotDKId")
   @ForeignKey(name="FK_tbl_DKMH_DotDK_tbl_ThongTin_TKB")
   public Tbl_DKMH_DotDK getDotDKId() {
	    return dotDKId;
   }
   public void setDotDKId(Tbl_DKMH_DotDK dotDKId) {
	    this.dotDKId=dotDKId;
   }

   public Integer getSiSoMax() {
   	return siSoMax;
   }
   public void setSiSoMax(Integer siSoMax) {
   	this.siSoMax= siSoMax;
   }

   public Integer getSiSoMin() {
   	return siSoMin;
   }
   public void setSiSoMin(Integer siSoMin) {
   	this.siSoMin= siSoMin;
   }

   public Integer getSoHVDangKy() {
   	return soHVDangKy;
   }
   public void setSoHVDangKy(Integer soHVDangKy) {
   	this.soHVDangKy= soHVDangKy;
   }

   public String getGiangVien() {
   	return giangVien;
   }
   public void setGiangVien(String giangVien) {
   	this.giangVien= giangVien;
   }

   public Integer getTuanBatDau() {
   	return tuanBatDau;
   }
   public void setTuanBatDau(Integer tuanBatDau) {
   	this.tuanBatDau= tuanBatDau;
   }
   public Double getPhanTramDoi() {
	return phanTramDoi;
}
public void setPhanTramDoi(Double phanTramDoi) {
	this.phanTramDoi = phanTramDoi;
}
public Double getPhanTramXepLop() {
	return phanTramXepLop;
}
public void setPhanTramXepLop(Double phanTramXepLop) {
	this.phanTramXepLop = phanTramXepLop;
}
   public Integer getTuanKetThuc() {
   	return tuanKetThuc;
   }
   public void setTuanKetThuc(Integer tuanKetThuc) {
   	this.tuanKetThuc= tuanKetThuc;
   }

   public Integer getTuanHoc() {
   	return tuanHoc;
   }
   public void setTuanHoc(Integer tuanHoc) {
   	this.tuanHoc= tuanHoc;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="CanBoId")
   @ForeignKey(name="FK_tbl_CanBo_tbl_ThongTin_TKB")
   public Tbl_CanBo getCanBoId() {
	    return canBoId;
   }
   public void setCanBoId(Tbl_CanBo canBoId) {
	    this.canBoId=canBoId;
   }

   public Date getNgayCapNhat() {
   	return ngayCapNhat;
   }
   public void setNgayCapNhat(Date ngayCapNhat) {
   	this.ngayCapNhat= ngayCapNhat;
   }
}//endClass 

